package com.kinoshita.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author reagan
 * @since 2022-08-29
 */
@TableName("sys_permission")
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("`parentId`")
    private Long parentId;

    @TableField("`code`")
    private String code;

    @TableField("`name`")
    private String name;

    @TableField("`method`")
    private String method;

    @TableField("`icon`")
    private String icon;

    @TableField("`requestUrl`")
    private String requestUrl;

    @TableField("`createDate`")
    private LocalDateTime createDate;

    @TableField("`modifiDate`")
    private LocalDateTime modifiDate;

    @TableField("`creator`")
    private String creator;

    @TableField("`modifier`")
    private String modifier;

    @TableField("`sort`")
    private Integer sort;

    @TableField("`isDelete`")
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public LocalDateTime getModifiDate() {
        return modifiDate;
    }

    public void setModifiDate(LocalDateTime modifiDate) {
        this.modifiDate = modifiDate;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "SysPermission{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", method='" + method + '\'' +
                ", icon='" + icon + '\'' +
                ", requestUrl='" + requestUrl + '\'' +
                ", createDate=" + createDate +
                ", modifiDate=" + modifiDate +
                ", creator='" + creator + '\'' +
                ", modifier='" + modifier + '\'' +
                ", sort=" + sort +
                ", isDelete=" + isDelete +
                '}';
    }
}
